package cn.csdj.sism.service.impl;

import cn.csdj.sism.dao.AdultexamMapper;
import cn.csdj.sism.pojo.Adultexam;
import cn.csdj.sism.service.AdultexamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Service实现类
 * 夏锦红
 * 2023/4/7
 */
@Service
public class AdultexamServiceImpl implements AdultexamService {

    @Autowired
    private AdultexamMapper adultexamMapper;
    @Override
    public int insert(Adultexam adultexam) {
        return adultexamMapper.insert(adultexam);
    }

    @Override
    public int deleteById(Integer id) {
        return adultexamMapper.deleteById(id);
    }

    @Override
    public int update(Adultexam adultexam) {
        return adultexamMapper.updateById(adultexam);
    }

    @Override
    public Adultexam selectById(Integer id) {
        return adultexamMapper.selectById(id);
    }

    @Override
    public List<Adultexam> selectAll() {
        return adultexamMapper.selectList(null);
    }
}
